package com.qww.test01;

import javax.xml.transform.Source;
import java.io.PrintStream;
import java.util.Arrays;

public class PrintUtil {

    private static final PrintStream out = System.out;

    public static void println(int x) {
        out.println(x);
    }
    public static void println(Long x) {
        out.println(x);
    }
    public static void println(float x) {
        out.println(x);
    }
    public static void println(double x) {
        out.println(x);
    }
    public static void println(String s) {
        out.println(s);
    }

    public static void println(Object obj) {
        out.println(obj);
    }

    public static void println() {
        out.println();
    }

    public static void print(Object obj) {
        out.print(obj);
    }

    /**
     * A convenience method to write a formatted string to this output stream using the specified format string and arguments.
     * @param format
     * @param args
     */
    public static void printf(String format, Object... args) {
        out.printf(format, args);
    }

}
